import java.util.Arrays;
public class Main {
    public static void main(String[] args) {
        int[] array1 = {1,2,3,4,5};
        int[] array2 = Arrays.copyOf(array1, array1.length);
        int[] array3 = Arrays.copyOfRange(array2, 0, array2.length);
        Arrays.fill(array3, 0);
        System.out.println(Arrays.toString(array3));
        Arrays.equals(array1, array3);
        Arrays.sort(array1);
    }
}